package pl.zuiol.games.poker.util;

import java.util.ArrayList;
import java.util.List;

/**
 * User: Damian
 * Date: 06.08.11
 * Time: 14:52
 */
public class TableSet{

    private List<Card> tableSet;
    private Deck deck;

    public TableSet(Deck deck){
        tableSet = new ArrayList<Card>();
        this.deck = deck;
    }

    public List<Card> floop(){

        deck.drawFromDeck();
        tableSet.add(deck.drawFromDeck());
        tableSet.add(deck.drawFromDeck());
        tableSet.add(deck.drawFromDeck());
        return tableSet;
    }

    public List<Card> turn(){

        deck.drawFromDeck();
        tableSet.add(deck.drawFromDeck());
        return tableSet;
    }

    public List<Card> river(){

        deck.drawFromDeck();
        tableSet.add(deck.drawFromDeck());
        return tableSet;
    }

    public List<Card> getTableSet(){
        return tableSet;
    }
}
